{% extends 'AFSOC_app/base.html' %}
{% load django_tables2 %}
{% load bootstrap3 %}
{% block title %}AFSOC-用户管理{% endblock %}


{% block content %}
    <div class="row" style="margin: 0 10%">
        <div class="col-md-4 col-md-offset-4" style="margin: 10px 0">
            <button class="btn btn-default pull-left"><a href="/AFSOC_app/createUser/" target="_blank">创建用户</a></button>
            <button class="btn btn-default pull-right"><a href="/AFSOC_app/createDepartment/" target="_blank">创建部门</a></button>
        </div>
        <div class="col-sm-10">
            <div class="pull-right">
                {% if view.export_format %}
                    <a href="{% export_url view.export_format %}" class="btn btn-xs btn-default">
                        download  <code>.{{ view.export_format }}</code>
                    </a>
                {% endif %}
            </div>
            {% if filter %}
                <form action="" method="get" class="form form-inline">
                    {% bootstrap_form filter.form layout='inline' %}
                    {% bootstrap_button '筛选' %}
                </form>
            {% endif %}
        </div>
        <div class="col-sm-10">
            {% render_table table %}
        </div>
    </div>
{% endblock %}